Fix rust-lang/rust#35203 warning/error
authorTim Neumann <mail@timnn.me>
Wed, 26 Oct 2016 15:25:15 +0000 (17:25 +0200)
committerGitHub <noreply@github.com>
Wed, 26 Oct 2016 15:25:15 +0000 (17:25 +0200)
rust-lang/rust#35203 made patterns in functions without body into a warn by default lint (which is being `deny`ed here).

tests/cargotest/support/mod.rs

index 6de6df19764cf5366ea82995c24b6ae8714b9557..e647b7af02186ee2c18824741b75b30bd991b294 100644 (file)
@@ -608,7 +608,7 @@ pub fn shell_writes<T: fmt::Display>(string: T) -> ShellWrites {
 }
 
 pub trait Tap {
-    fn tap<F: FnOnce(&mut Self)>(mut self, callback: F) -> Self;
+    fn tap<F: FnOnce(&mut Self)>(self, callback: F) -> Self;
 }
 
 impl<T> Tap for T {